<template>
    <div :key="dealWithKey">
        <dealWith013 ref="dealWithRef" :parameter="parameterData" @successReturn="successReturn" @updatedSuccess="updatedSuccess"/>
    </div>
</template>
<script>
import dealWith013 from './dealWith-013.vue'
export default {
    components:{
        dealWith013,
    },
    props:{

    },
    data(){
        return{
            parameterData:{},
            dealWithKey:null,
        }
    },
    watch:{

    },
    mounted(){
        
    },
    methods:{
        getDatas(val){
            this.$refs.dealWithRef.getDatas(val)
            this.parameterData = val
            // this.$store.dispatch('UpdateSpinningPrice', {key:true,stateKey:'modalSpinningPrice'})
            // getSqsxBm({sqsxid:val.sqsxid}).then(res=>{
            //     if(res.code == 200){
            //         val['sqsxbm'] = res.result
            //         //console.log('获取到什么啊！',val)
            //         this.parameterData = val
            //         this.dealWithKey = Date.now()
            //         this.$nextTick(()=>{
            //             this.$store.dispatch('UpdateSpinningPrice', {key:true,stateKey:'modalSpinningPrice'})
            //             this.$refs.dealWithRef.getDatas(val)
            //         })
            //     }else{
            //         this.$message.warning(res.message)
            //     }
            // })
            
        },
        updatedSuccess(){
            this.$emit('updatedSuccess')
        },
        successReturn(val){
            this.$emit('successReturn',val)
        }
    }
}
</script>